home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Loadstar 32
/
032.d81
/
tips & tricks
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2022-08-26
|
933b
|
31 lines
5 poke53280,.:poke53281,.:print"[147][159]";
10 print"[147][159] [198]ancy [208]rinting [210]outines - [212]hong [206]guyen[158]"
20 m$="[195][207][205][205][207][196][207][210][197] [205][193][199][193][218][201][206][197] & [204][207][193][196][211][212][193][210]"
30 gosub100:print"[153]";
35 m$="[163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163]"
40 gosub300:print"[154]";
60 m$="[208]ress [209] to quit, [210] to re-run program.":gosub200
65 geta$:ifa$="r"ora$="[210]"thenrun
70 ifa$<>"q"anda$<>"[209]"then65
80 open15,8,15,"r0:hello connect=hello connect":input#15,er:close15
90 print"[147]";:ifer<>63thenend
95 load"hello connect",8
100 rem ** letters drop from the sky
110 td=10:rem screen line to print on
120 l=len(m$):ta=(40-l)/2-1:forj=1tol:m1$=mid$(m$,j,1):print""
130 ifm1$<>" "thenfork=1totd-2:printtab(ta+j)m1$"[145]":printtab(ta+j)" ":next
140 printtab(ta+j)m1$:next
150 return
160 :
200 rem ** letters zoom in from left
210 l=len(m$):ta=(40-l)/2-1:forj=lto1step-1:m1$=" "+mid$(m$,j,1)
220 ifm1$<>" "thenfork=1toj:printtab(ta+k-1)m1$"[145]":next
230 next:print
240 return
250 :
300 rem ** letters explode from center
310 iflen(m$)/2<>int(len(m$)/2)thenm$=m$+" "
320 l=len(m$):ta=(40-l)/2:tb=l/2:tc=ta+tb:forj=1totb:tc=tc-1
330 printtab(tc)left$(m$,j)tab(tb)right$(m$,j)"[145]":fork=1to20:next:next
340 return